﻿/* 
 PureMVC C# Port by Andy Adamczak <andy.adamczak@puremvc.org>, et al.
 PureMVC - Copyright(c) 2006-08 Futurescale, Inc., Some rights reserved. 
 Your reuse is governed by the Creative Commons Attribution 3.0 License 
*/

#region Using


using System;

using PureMVC.Interfaces;
using PureMVC.Patterns;

#endregion

namespace PureMVC.Patterns
{
    /// <summary>
    /// 通知者
    /// </summary>
    public class Notifier : INotifier
    {
        public virtual void SendNotification(string notificationName)
        {
            m_facade.SendNotification(notificationName);
        }
        public virtual void SendNotification(string notificationName, object body)
        {
            m_facade.SendNotification(notificationName, body);
        }
        public virtual void SendNotification(string notificationName, object body, string type)
        {
            m_facade.SendNotification(notificationName, body, type);
        }
        protected IFacade Facade
        {
            get { return m_facade; }
        }
        private IFacade m_facade = PureMVC.Patterns.Facade.Instance;

    }
}
